package com.fcl.oschina.adapter;

import android.content.Context;

import com.fcl.mylibrary.recyclerviewhelper.BaseAdapter;
import com.fcl.mylibrary.recyclerviewhelper.BaseHolder;
import com.fcl.oschina.R;
import com.fcl.oschina.entity.ImageEntity;
import com.fcl.oschina.entity.TweetEntity;

import java.util.List;

/**
 * Created by Administrator on 2017/3/20.
 */

public class ImageAdapter extends BaseAdapter<ImageEntity> {
    public ImageAdapter(Context context, int layoutId, List<ImageEntity> datas) {
        super(context, layoutId, datas);
    }

    @Override
    protected void bindHolder(BaseHolder baseHolder, ImageEntity data) {
        super.bindHolder(baseHolder, data);
        baseHolder.setImage(R.id.image, data.getHref());
    }
}
